# -*- coding: utf-8 -*-
import tornado.httpserver
import tornado.ioloop
import tornado.web

import settings
from urls import urlpatterns

settings = {
    "static_path": settings.MEDIA_PATH,
}

application = tornado.web.Application(urlpatterns, **settings)

if __name__ == "__main__":
    http_server = tornado.httpserver.HTTPServer(application)
    http_server.listen(8888)
    tornado.ioloop.IOLoop.instance().start()
